package com.ruoyi.registration.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.registration.mapper.SysInterviewRegistrationMapper;
import com.ruoyi.registration.domain.SysInterviewRegistration;
import com.ruoyi.registration.service.ISysInterviewRegistrationService;

/**
 * 面试登记Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-23
 */
@Service
public class SysInterviewRegistrationServiceImpl implements ISysInterviewRegistrationService 
{
    @Autowired
    private SysInterviewRegistrationMapper sysInterviewRegistrationMapper;

    /**
     * 查询面试登记
     * 
     * @param id 面试登记主键
     * @return 面试登记
     */
    @Override
    public SysInterviewRegistration selectSysInterviewRegistrationById(Long id)
    {
        return sysInterviewRegistrationMapper.selectSysInterviewRegistrationById(id);
    }

    /**
     * 查询面试登记列表
     * 
     * @param sysInterviewRegistration 面试登记
     * @return 面试登记
     */
    @Override
    public List<SysInterviewRegistration> selectSysInterviewRegistrationList(SysInterviewRegistration sysInterviewRegistration)
    {
        return sysInterviewRegistrationMapper.selectSysInterviewRegistrationList(sysInterviewRegistration);
    }

    /**
     * 新增面试登记
     * 
     * @param sysInterviewRegistration 面试登记
     * @return 结果
     */
    @Override
    public int insertSysInterviewRegistration(SysInterviewRegistration sysInterviewRegistration)
    {
        return sysInterviewRegistrationMapper.insertSysInterviewRegistration(sysInterviewRegistration);
    }

    /**
     * 修改面试登记
     * 
     * @param sysInterviewRegistration 面试登记
     * @return 结果
     */
    @Override
    public int updateSysInterviewRegistration(SysInterviewRegistration sysInterviewRegistration)
    {
        return sysInterviewRegistrationMapper.updateSysInterviewRegistration(sysInterviewRegistration);
    }

    /**
     * 批量删除面试登记
     * 
     * @param ids 需要删除的面试登记主键
     * @return 结果
     */
    @Override
    public int deleteSysInterviewRegistrationByIds(Long[] ids)
    {
        return sysInterviewRegistrationMapper.deleteSysInterviewRegistrationByIds(ids);
    }

    /**
     * 删除面试登记信息
     * 
     * @param id 面试登记主键
     * @return 结果
     */
    @Override
    public int deleteSysInterviewRegistrationById(Long id)
    {
        return sysInterviewRegistrationMapper.deleteSysInterviewRegistrationById(id);
    }
}
